<template>
	<om-page>
		<uni-list>
			<uni-list-item  v-for="(item,index) of formTitle" :key="index" :showArrow="false">
				<view class="tui-flex">
					<view style="font-size: 16px; width:250rpx;"><om-label :align="'right'" :label="deleteHtml(item.title)"></om-label></view>
					<view class="tui-col-7">{{formData[item.field]}}</view>
				</view>
			</uni-list-item>
		</uni-list>
	</om-page>
</template>

<script>
	import { ignoreHtml } from '@/static/js/common.js';
	export default{
		data(){
			return{
				formTitle:[],
				formData:[]
			}
		},
		computed:{
			deleteHtml(){
				return function(val){
					return ignoreHtml(val)
				}
			}
		},
		methods:{
			
		},
		mounted() {
			let _that = this
			uni.getStorage({
				key:'postDetailTitleCache',
				success:(res)=>{
					_that.formTitle = res.data
				}
			})
			uni.getStorage({
				key:'postDetailDataCache',
				success:(res)=>{
					_that.formData = res.data
				}
			})
		},
		onLoad() {
			let _that = this
			uni.setNavigationBarTitle({
				title: '岗位详情'
			})
		}
	}
</script>

<style>
</style>                                                  
